const useSocket = (user_id) => {
    // 正确配置websocket并成功链接服务
    const connectionSocket = () => {
       return new WebSocket(`ws://81.70.224.2:8003/koa/ws?user_id=${user_id}&server_id=3004`)
    }
    return {connectionSocket}
}

export default useSocket;